import loadable from "@/utils/loadable";


//路由配置对象
// isAuth 表示不用验证是否登录
export const routers = [
    {
        name: "登录",
        path: "/login",
        exact: true,
        meta: {
            isAuth: true
        },
        component: loadable(() => import("@/views/login/index"))
    },
    {
        name: "首页",
        path: "/index",
        component: loadable(() => import("@/views/index/index"))
    },
    {name: '首页', path: '/', exact: true, Redirect: '/index'}
]

export const menus = [  // 菜单相关路由
    {name: '首页', path: '/', exact: true, Redirect: '/index'}
]